//
//  PineWatch-4604
//
//  Created by Pineapple, 2021/07/07.
//  Copyright @ 2021 Pineapple. All rights reserved.
//

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"

#include "sysclk.h"
#include "uart.h"
#include "basicio.h"

#include "sr.h"
#include "imu.h"



void app_main()
{
    uart_init(115200);
    basicio_init();

   HV_EN;
   VDD1V2_EN;
   VDD28_EN;
   D1_EN;
   D2_EN;


    while(1)
    {
        HV5523_senddata(0x0);
        vTaskDelay(1000 / portTICK_PERIOD_MS);
        HV5523_senddata(0xffffffff);
        vTaskDelay(1000 / portTICK_PERIOD_MS);
    }

}